package com.example.hw_smart_home.huawei_api.util;

public class Constants {
    //必要网址
    public static final String TOKEN_BASE_URL = "https://iam.cn-north-4.myhuaweicloud.com";
//    public static final String IOTDM_BASE_DOAMIN_URL = "https://4c37dbe6af.st1.iotda-app.cn-north-4.myhuaweicloud.com";
    public static final String IOTDM_BASE_DOAMIN_URL = "https://e82ecfed44.st1.iotda-app.cn-north-4.myhuaweicloud.com";
    public static final String IOTDM_BASE_URL = "https://114.116.232.138";

    //获取token的路径
    public static final String TOKEN_ACCESS_URL = TOKEN_BASE_URL + "/v3/auth/tokens";   //获取token

    //查询路径
    public static final String PRODUCT_COMMAND_URL = IOTDM_BASE_URL + "/v5/iot/%s/products";    //查询产品
    public static final String DEVICE_COMMAND_URL = IOTDM_BASE_URL + "/v5/iot/%s/devices/%s";   //查询设备
    public static final String DEVICE_SHADOW_URL = IOTDM_BASE_URL + "/v5/iot/%s/devices/%s/shadow"; //查询设备影子
    public static final String Issue_COMMAND_URL = IOTDM_BASE_DOAMIN_URL + "/v5/iot/%s/devices/%s/commands";    //命令下发

    //项目ID
    public static final String PROJECT_ID = "d7da56d14ed64d1fb733402c77b334a5";     //项目ID
    public static final String PROJECT_ID_LT = "7638b3c6cf9c460c8d989b80cb8c23b8";     //项目ID

    //设备ID
    public static final String DEVICE_ID = "67fa296d2902516e8670afd0_esp8266";      //设备ID
    public static final String DEVICE_ID_LT = "68485767d582f20018300380_SmartHome";      //设备ID

    //服务ID
    public static final String SERVICE_ID = "SmartHome";

    //设备标识码
    public static final String NODE_ID = "67fa296d2902516e8670afd0_esp8266";
    public static final String NODE_ID_LT = "SmartHome";

    //AK/SK认证(不使用)
    public static final String ACCESS_KEY = "HPUA1CSDBDUDSQIFH03U";
    public static final String ACCESS_KEY2 = "HPUA745BRWFTCUW3PTCG";
    public static final String SECRET_KEY = "aDfMiURvGJJKcBvfO9eLySNFH2yl2xJdnipt6P31";
    public static final String SECRET_KEY2 = "K5qyjVsQrUW2x6HaFQUk0a6nE0gbd76DVcjPwktw";

}
